﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Data;

namespace DCTAccess.Business.Location
{
    public class LocationCollection : CollectionBase
    {
        public LocationCollection() { }

        public LocationCollection(DataTable dt)
        {
            foreach (DataRow dtLocation in dt.Rows)
            {
                Add(new Location(dtLocation));
            }
        }

        public int Add(Location location)
        {
            return base.List.Add(location);
        }

        public int IndexOf(Location location)
        {
            return base.List.IndexOf(location);
        }

        public Location this[int index]
        {
            get
            {
                return (Location)base.List[index];
            }
        }
    }
}
